

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Action Notation [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Action,Action Notation,Action Operations,Action Update Operation,Activity Diagram,Activity Diagram Operations,Operation,Operation As Action">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Action Notation</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="action.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="set_feature_dialog.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">Some properties can be graphically depicted on an <a href="action.htm">Action</a> element, as shown in the examples below.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="126" style="width:126px; height:60px;"><p class="p_Tabletext" style="text-align: center; margin: 5px 0px 5px 13px;"><img src="action%20-%20calloperation.png" width="171" height="66" border="0" alt="Action - CallOperation"></p>
</td>
<td valign="top" width="126" style="width:126px; height:60px;"><p class="p_Tabletext" style="text-align: center; margin: 5px 0px 5px 13px;"><img src="action%20-%20callbehaviour.png" width="105" height="65" border="0" alt="Action - CallBehaviour"></p>
</td>
<td valign="top" width="145" style="width:145px; height:60px;"><p class="p_Tabletext" style="text-align: center; margin: 5px 0px 5px 13px;"><img src="action%20-%20acceptevent.png" width="120" height="66" border="0" alt="Action - AcceptEvent"></p>
</td>
<td valign="top" width="139" style="width:139px; height:60px;"><p class="p_Tabletext" style="text-align: center; margin: 5px 0px 5px 13px;"><img src="action%20-%20accepteventtimer.png" width="80" height="73" border="0" alt="Action - AcceptEventTimer"></p>
</td>
<td valign="top" width="162" style="width:162px; height:60px;"><p class="p_Tabletext" style="text-align: center; margin: 5px 0px 5px 13px;"><img src="action%20-%20sendsignal.png" width="106" height="66" border="0" alt="Action - SendSignal"></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="126" style="width:126px;"><p class="p_Tabletext" style="text-align: center;"><span class="f_Tabletext" style="font-weight: bold;">Action Notation Kind:</span><br>
<span class="f_Tabletext">CallOperation</span></p>
</td>
<td valign="top" width="126" style="width:126px;"><p class="p_Tabletext" style="text-align: center;"><span class="f_Tabletext" style="font-weight: bold;">Action Notation Kind:</span><br>
<span class="f_Tabletext">CallBehavior</span></p>
</td>
<td valign="top" width="145" style="width:145px;"><p class="p_Tabletext" style="text-align: center;"><span class="f_Tabletext" style="font-weight: bold;">Action Notation Kind</span><span class="f_Tabletext">:</span><br>
<span class="f_Tabletext">AcceptEvent</span></p>
</td>
<td valign="top" width="139" style="width:139px;"><p class="p_Tabletext" style="text-align: center;"><span class="f_Tabletext" style="font-weight: bold;">Action Notation Kind</span><span class="f_Tabletext">:</span><br>
<span class="f_Tabletext">AcceptEventTimer</span></p>
</td>
<td valign="top" width="162" style="width:162px;"><p class="p_Tabletext" style="text-align: center;"><span class="f_Tabletext" style="font-weight: bold;">Action Notation Kind:</span><br>
<span class="f_Tabletext">SendSignal</span></p>
</td>
</tr>
</table>
</div>
<p class="p_BodyText"><span class="f_BodyText">When you drag the </span><span class="f_MenuKeyField">Action</span><span class="f_BodyText"> icon from the </span><span class="f_UIControl">Activity</span><span class="f_BodyText"> page of the </span><span class="f_UIControl">Toolbox</span><span class="f_BodyText"> onto your diagram, the </span><span class="f_UIControl">New Action</span><span class="f_BodyText"> dialog displays:</span></p>
<p class="p_TextIndentedL2"><img src="newactiondialog.png" width="322" height="213" border="0" alt="NewActionDialog"></p>
<p class="p_BodyText"><span class="f_BodyText">You can select to create a normal <a href="action.htm">Action</a> element, a CallOperation or CallBehavior Action, or any of several </span><span class="f_BodyText">other</span><span class="f_BodyText"> types of Action. If you select the </span><span class="f_MenuKeyField">Other</span><span class="f_BodyText"> option, you can click on the drop-down arrow in the blank field and select the Action type from a list.</span></p>
<p class="p_BodyText"><span class="f_BodyText">If you later decide that the Action type is not appropriate, you can change it by right-clicking on the Action and selecting the </span><span class="f_MenuKeyField">Advanced | Custom Properties</span><span class="f_BodyText"> menu option, which displays the</span><span class="f_UIControl"> Custom Properties</span><span class="f_BodyText"> dialog. Set the Action type by selecting a value from the </span><span class="f_MenuKeyField">Kind</span><span class="f_BodyText"> drop-down list.</span></p>
<p class="p_TextIndentedL2"><img src="actions%20-%20actionnotation.png" width="426" height="312" border="0" alt="Actions - ActionNotation"></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Class Operations in Activity Diagrams<a name="opo"></a></span></p>
<p class="p_BodyText"><span class="f_BodyText">Operations from Classes can be displayed on Activity diagrams as Actions. When an operation is shown as an Action, the notation of the Action displays the name of the Class that features the operation. To add an operation to an Activity diagram follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">Open an Activity diagram.</span></li>
<li value=2><span class="f_NumberedList">From the </span><span class="f_UIControl">Project Browser</span><span class="f_NumberedList"> open a Class and locate the operation to be added to the Activity diagram.</span></li>
<li value=3><span class="f_NumberedList">Drag the operation on to the diagram.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<img src="dragoperation.png" width="242" height="82" border="0" alt="DragOperation"><br>
<span class="f_NumberedList">&nbsp;</span></li>
<li value=4><span class="f_NumberedList">When the operation has been added to the Activity diagram the Action displays the name of the Class that features the operation.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<img src="action%20-%20calloperation.png" width="171" height="66" border="0" alt="Action - CallOperation"><br>
<span class="f_NumberedList">&nbsp;</span></li>
</ol>
<p class="p_BodyText"><span class="f_BodyText">If you right-click on the Action in the diagram, you can locate the behavior classifier (CallBehavior Activity) or call operation (CallOperation Activity) in the</span><span class="f_UIControl"> Project Browser</span><span class="f_BodyText"> using the </span><span class="f_MenuKeyField">Find | Locate Classifier in Project Browser</span><span class="f_BodyText"> and </span><span class="f_MenuKeyField">Find | Locate Operation in Project Browser</span><span class="f_BodyText"> context menu options.</span></p>
<p class="p_BodyText"><span class="f_BodyText">If it becomes necessary to change the operation that this Action refers to, follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">Right-click on the Action. The context menu displays.</span></li>
<li value=2><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Advanced | Set Operation</span><span class="f_NumberedList"> menu option. The <a href="set_feature_dialog.htm">Set Operation dialog</a> displays.</span></li>
<li value=3><span class="f_NumberedList">If necessary, in the </span><span class="f_MenuKeyField">In Namespace</span><span class="f_NumberedList"> field, select the model that contains the required operation.</span></li>
<li value=4><span class="f_NumberedList">Double-click on the required operation. The Action updates to show the new classifier and operation.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<img src="newaction.png" width="152" height="70" border="0" alt="NewAction"></li>
</ol>




            </div>
          </div>
        </div>



</div>


</body>
</html>
